package com.bw.mallshot.login;

import androidx.databinding.ObservableField;

import com.blankj.utilcode.util.LogUtils;
import com.bw.mvvm.entity.BaseEntity;
import com.bw.mvvm.mvvm.viewmodel.BaseViewModel;

public class LoginViewModel extends BaseViewModel<LoginModel> {

    public ObservableField<String> name = new ObservableField<>();

    public ObservableField<String> pwd = new ObservableField<>();

    @Override
    protected void result(BaseEntity entity) {

    }

    public void loginClick() {
        LogUtils.e("loginClick():" + name.get());
        LogUtils.e("loginClick():" + pwd.get());
        m.login(name.get(), pwd.get());
    }
}
